import service from '@/utils/request'

const PosterModelApi = {
  listPosterModel: function (data) {
    return service.get('posterModel/page', { params: data })
  },
  addPosterModel: function (data) {
    return service.post('posterModel', data)
  },
  editPosterModel: function (data) {
    return service.put('posterModel', data)
  },
  updatePosterModelState: function (data) {
    return service.put('posterModel/updatePosterModelState', data)
  },
  deletePosterModel: function (data) {
    return service.put('posterModel/delete', data)
  },
  getPosterModelInfo(data) {
    return service.get('posterModel', { params: data })
  },
  listPosterModelIdName(data) {
    return service.get('posterModel/listIdName', { params: data })
  },
  createPoster(data) {
    return service.post('posterModel/createPoster', data)
  },
  createTestPoster(data) {
    return service.post('posterModel/createTestPoster', data)
  },
  batchCreatePoster(data) {
    return service.post('posterModel/batchCreatePoster', data)
  },
}

export default PosterModelApi